import { ObjectId } from "mongodb"
import { answer } from "./Answer"

/*
 * @Date: 2023-02-12 17:28:09
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-07 13:55:18
 * @FilePath: \A19\backend\src\shared\types\Question.ts
 */
export interface question {
    question: string
    type: "选择题" | "填空题" | "简答题" | "判断题"
    selections?: Array<string>
    questionCount?:number
    score:number
}

export interface questions{
    _id:ObjectId
    question:question
    answer:answer
    teacher:ObjectId
}